//
//  LCHomeEssayRightImageTableViewCell.m
//  JKFuYinProject
//
//  Created by admin on 2017/12/25.
//  Copyright © 2017年 LC. All rights reserved.
//

#import "LCHomeEssayRightImageTableViewCell.h"

@implementation LCHomeEssayRightImageTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    [self setupUI];
}
-(void)setupUI{
//    CGFloat scale = 0.65/**9/16*/;
    CGFloat space = 10;
    self.adddateLabel.numberOfLines = 2;
    self.adddateLabel.font = FONT_12;

    [self.thumbpicImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView).offset(space);
        make.top.equalTo(self.contentView).offset(10);
//        make.width.equalTo(@(ScreenWidth*0.32));
//        make.height.offset(ScreenWidth*0.32*scale);
        make.width.equalTo(self.thumbpicImageView.mas_height).multipliedBy(1.7);
        make.bottom.equalTo(self.contentView.mas_bottom).offset(-10);
    }];
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.thumbpicImageView.mas_right).offset(7.5);
        make.top.equalTo(self.thumbpicImageView.mas_top).offset(0);
        make.right.equalTo(self.contentView).offset(-space);
        make.height.equalTo(self.titleLabel.mas_height);
    }];
    [self.adddateLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.titleLabel);
        make.right.equalTo(self.contentView).offset(-space);
        make.height.equalTo(self.adddateLabel.mas_height);
        make.bottom.equalTo(self.thumbpicImageView.mas_bottom);
    }];
    
}

@end
